home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
mkutil21.zip
/
MAKEDEFS
/
BC3.MK
< prev
next >
Wrap
Text File
|
1995-02-06
|
4KB
|
115 lines
#############################################################################
#
# Copyright (C) 1994 SciTech Software
# All rights reserved.
#
# Descripton: Generic DMAKE startup makefile definitions file. Assumes
# that the SCITECH environment variable has been set to point
# to where all our stuff is installed. You should not need
# to change anything in this file.
#
# Borland C++ 3.1 version.
#
# $Id: bc3.mk 1.1 1995/02/06 12:49:39 kjb release $
#
#############################################################################
# Disable warnings for macros redefined here that were given
# on the command line.
__.SILENT := $(.SILENT)
.SILENT := yes
# File suffix definitions
L := .lib # Libraries
E := .exe # Executables
O := .obj # Objects
A := .asm # Assembler sources
P := .cpp # C++ sources
# Import enivornment variables that we use
TMPDIR := $(ROOTDIR)/tmp
.IMPORT .IGNORE : TMPDIR COMSPEC INCLUDE LIB SCITECH DBG OPT SHW BETA FPU
# We use the MSDOS shell at all times
SHELL := $(COMSPEC)
GROUPSHELL := $(SHELL)
SHELLFLAGS := $(SWITCHAR)c
GROUPFLAGS := $(SHELLFLAGS)
SHELLMETAS := *"?<>
GROUPSUFFIX := .bat
DIRSEPSTR := \\
DIVFILE = $(TMPFILE:s,/,\)
# Default commands for compiling, assembling linking and archiving
CC := bcc # C-compiler and flags
CFLAGS := -ml -H=bcc.sym
AS := tasm # Assembler and flags
ASFLAGS := /mx /m /i$(SCITECH)\INCLUDE
LD := bcc # Loader and flags
LDFLAGS = $(CFLAGS)
LIB := tlib # Librarian
LIBFLAGS := /C
# Optionally turn on debugging information
.IF $(DBG)
CFLAGS += -v # Turn on debugging for C compiler
ASFLAGS += /zi # Turn on debugging for assembler
LIBFLAGS += /P128 # Larger page size for libraries with debug info!
.END
# Optionally turn on optimisations
.IF $(OPT)
CFLAGS += -3 -O2
.END
# Optionally turn on direct i387 FPU instructions
.IF $(FPU)
CFLAGS += -f287 -DFPU387
ASFLAGS += -DFPU387
.END
# Optionally compile a shareware version of a product
.IF $(SHW)
LIB_DIR := LIBSW
CFLAGS += -DSHAREWARE
.ELSE
LIB_DIR := LIB
.END
# Optionally compile a beta release version of a product
.IF $(BETA)
CFLAGS += -DBETA
ASFLAGS += -DBETA
.END
# Define where to install library files
LIB_DEST := $(SCITECH)\$(LIB_DIR)\BC3
# Definition of $(MAKE) macro for recursive makes.
MAKE = $(MAKECMD) $(MFLAGS)
# Macro to install a library file
INSTALL := cp
# Implicit generation rules for making object files
%$O: %.c ; +$(CC) @$(mktmp $(CFLAGS)) -c $<
%$O: %$P ; +$(CC) @$(mktmp $(CFLAGS)) -c $<
%$O: %$A ; +$(AS) $(ASFLAGS) $(<:s,/,\)
# Implicit rule for building a library file using response file
%$L: ; $(LIB) $(LIBFLAGS) $@ @$(mktmp -+$(?:t" &\n-+")\n)
# Implicit rule for building an executable file using response file
%$E: ; $(LD) @$(mktmp $(LDFLAGS) -e$@ $(&:s/\/\\) pmode.lib $(EXELIBS))
# DMAKE uses this recipe to remove intermediate targets
.REMOVE :; $(RM) -f $<
# Turn warnings back to previous setting.
.SILENT := $(__.SILENT)
# We dont use TABS in our makefiles
.NOTABS := yes